import {createStore, combineReducers, applyMiddleware, compose} from "redux"

import tabBarReducer from './reducers/tabBarReducer'
import findListReducer from './reducers/findListReducer'
import promiseThunk from 'redux-promise'
const reducer = combineReducers({
		tabBarReducer,
		findListReducer
});

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(reducer, composeEnhancers(
		applyMiddleware(promiseThunk)
));

export default store
